<%@ page language="java"  pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>用户列表-修改密码</title>
	<link rel="stylesheet" type="text/css" href="../resource/css/base.css" />
	<script type="text/javascript" src="../resource/js/My97DatePicker/WdatePicker.js"></script>
	<s:actionmessage/>
<script type="text/javascript">
			function sumbit(){
				var form = document.forms[0];
				var reg = /^1[3|5|8]\d{9}\$/;
				var password = document.getElementsByName("password")[0].value;
				var passwordtwo = document.getElementsByName("passwordtwo")[0].value;
				if(password != passwordtwo){
					alert("两次输入密码不一致，请重新输入");
				}
				else{
					form.action="updatePass.action";
					form.submit();
				}
			}
		</script>

</head>
<body  oncontextmenu="return false;" leftmargin="8" topmargin="8">
<div class="tip"><span>当前位置:</span>用户管理&nbsp;&gt;&nbsp;修改密码&nbsp;&gt;&nbsp;</div>
<s:form name="update" namespace="/user">
<s:hidden name="driverId"/>
<table class="edittb" cellpadding="2" cellspacing="1">
	<tr bgcolor="#EEF4EA">
		<td height="35" colspan="4">&nbsp;用户信息&nbsp;</td>
	</tr>
	<tr>
		<td  class="coln"><SPAN style="color: red">*</SPAN> 用户名</td>
		<td  width="1"  class="colv">
			<s:textfield name="username" readonly="true" ></s:textfield>
		</td>
	</tr>
	<tr>
		<td class="coln"><SPAN style="color: red">*</SPAN> 新密码</td>
		<td class="colv">
			 <s:password name="password" showPassword = "true"></s:password>
		</td>
	</tr>
	<tr>
		<td class="coln"><SPAN style="color: red">*</SPAN> 请再次输入密码</td>
		<td class="colv">
			 <s:password name="passwordtwo" showPassword = "true"></s:password>
		</td>
	</tr>
	<tr align="right" bgcolor="#EEF4EA">
		<td height="35" colspan="4" align="center">
			<a href="javascript:history.go(-1)" class="coolbg">&nbsp;返&nbsp;回&nbsp;</a>
			<a href="#" class="coolbg" onclick="sumbit();">&nbsp;保&nbsp;存&nbsp;</a>
		</td>
	</tr>
</table>
</s:form>
</body>
</html>